package com.redlight.jdbc;

import java.util.LinkedHashSet;

/**
 * @author chao
 * @Title: JdbcParam
 * @date 2019-01-24 21:42
 */
public class JdbcParam extends LinkedHashSet {
    public JdbcParam() {
    }

    public JdbcParam(Object value, Class type) {
        this.add(value, type);
    }

    public JdbcParam add(Object value, Class clazz) {
        this.add(new JdbcParam.ParamData(value, clazz));
        return this;
    }

    public class ParamData {
        private Object value;
        private Class type;

        public ParamData() {
        }

        public ParamData(Object value, Class type) {
            this.value = value;
            this.type = type;
        }

        public Object getValue() {
            return this.value;
        }

        public Class getType() {
            return this.type;
        }
    }
}
